<?php

class Empeval_Methods_Response_GetBonusGoalsForm {
	
	/**
	 *
	 * @var Empeval_Methods_Data_ResponseStatus
	 */
	public $responseStatus;
	
	/**
	 *
	 * @var Empeval_Methods_Data_BonusGoalsForm
	 */
	public $bonusGoalsForm;
	/**
	 * 
	 * @var Empeval_Methods_Data_CompetanceGroup[]
	 */
	public $competanceGroups = null;
	/**
	 *
	 * @var Empeval_Methods_Data_Evaluation[]
	 */
	public $evaluations = null;
	public $evaluationActiveCount = null;
	public $currentYear;
	
	public function __construct($status, EmpevalViewBgfWithSuperiorPositionId $bgf) {
		$this->responseStatus = new Empeval_Methods_Data_ResponseStatus($status);
		$this->bonusGoalsForm = new Empeval_Methods_Data_BonusGoalsForm($bgf);
		$dateNow = new DateTime('now');
		$this->currentYear = $dateNow->format('Y');
	}
	
	public function setCompetanceGroups($cgs) {
		$this->competanceGroups = array();
		foreach ($cgs as $cg) {
			$this->competanceGroups[] = new Empeval_Methods_Data_CompetanceGroup($cg);
		}
	}
	
	public function setEvaluations($es) {
		$this->evaluations = array();
		foreach ($es as $e) {
			$this->evaluations[] = new Empeval_Methods_Data_Evaluation($e);
		}
	}
	
	public function setEvaluationActiveCount($count) {
		$this->evaluationActiveCount = $count;
	}
	
}